package com.longxiao.entity;


import java.util.Date;

import com.longxiao.vo.UserVo;

public class TempUser {
    private Integer id;

    private String userId;

    private Integer userType;

    private String password;

    private String mobile;

    private Date createdTime;

    private Date modifiedTime;

    public User toUserObj() {
        User user = new User();
        user.setUserId(this.userId);
        user.setUserType(this.getUserType());
        user.setPassword(this.getPassword());
        user.setMobile(this.getMobile());
        return user;
    }

    public UserVo toUserVoObj() {
        UserVo user = new UserVo();
        user.setUserId(this.userId);
        user.setUserType(this.getUserType());
        user.setMobile(this.getMobile());
        return user;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getModifiedTime() {
        return modifiedTime;
    }

    public void setModifiedTime(Date modifiedTime) {
        this.modifiedTime = modifiedTime;
    }
}